package com.ambow.store.mapper;

import com.ambow.store.entity.Cart;
import com.ambow.store.vo.CartVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author MyComputer
* @description 针对表【t_cart】的数据库操作Mapper
* @createDate 2022-11-12 13:17:15
* @Entity com.ambow.store.entity.Cart
*/
@Mapper
public interface CartMapper extends BaseMapper<Cart> {

    /**
     * 查询某用户的购物车数据
     * @param uid 用户id
     * @return 该用户的购物车数据的列表
     */
    List<CartVO> findVOByUid(Integer uid);

    List<CartVO> findVOByCid(Integer[] cid);
}




